package org.dromara.signIn.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dromara.signIn.domain.SignInRecord;
import org.dromara.signIn.domain.vo.SignInRecordVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

import java.util.List;

/**
 * 签到记录Mapper接口
 *
 * @author Lion Li
 * @date 2025-09-25
 */
public interface SignInRecordMapper extends BaseMapperPlus<SignInRecord, SignInRecordVo> {

    Page<SignInRecordVo> selectRecordsByUserIds(Page<?> page, @Param("userIds") List<String> userIds);

    List<SignInRecordVo> findTodayRecords(@Param("userId") Long userId,@Param("taskId") Long taskId);
}
